<template>
  <div>
    <h1>{{ list[0] }}</h1>
    <h2>{{ cat.age>=10?'老猫':'小猫' }}</h2>
    <h2>{{ cat.say() }}</h2>
    <button @click="onClick">鸽鸽</button>
  </div>
</template>

<script setup lang="ts">
import { log } from "util"

const list=['蔡徐坤','陈立农']
const cat={
  name:'暹罗',
  age:8,
  say(){
    console.log('miaomiao')
    return 'miaomiao'
  }
}
const onClick=()=>{
  console.log('🐓你太美')
}
</script>
<style>

</style>